package com.zdkj.subway.support.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 票价收费配置管理
 *
 * @author cui_com
 * @date 2020-01-08 17:20:38
 */
@Data
@TableName("sw_param_ticket_price")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "票价收费配置管理")
public class SwParamTicketPrice extends Model<SwParamTicketPrice> {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId
    @ApiModelProperty(value = "唯一标识")
    private Integer id;
    /**
     * 票价表ID
     */
    @ApiModelProperty(value = "票价表ID")
    private String ticketId;
    /**
     * 收费区段
     */
    @ApiModelProperty(value = "收费区段")
    private Integer refPriceAreaId;
    /**
     * 收费(分)
     */
    @ApiModelProperty(value = "收费(分)")
    private BigDecimal price;
    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID")
    private Integer creatorId;
    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String creatorName;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID")
    private Integer deptId;
    /**
     * 是否删除  1：已删除  0：正常
     */
    @TableLogic
    private String delFlag;
}
